package com.yanqu.road.entity.activity.feast.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.List;

/**
 * 分配信息
 */
@FieldTypeAnnotation(tableName = "t_c_feast_mount_allot_data")
public class CrossFeastMountAllotData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分配时间id", update = true)
    private long allotTimeId;

    @FieldTypeAnnotation(desc = "确认的服务器列表", update = true)
    private List<Long> ackServerIdList;
    public CrossFeastMountAllotData() {

    }

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getAllotTimeId() {
        return allotTimeId;
    }
    public void setAllotTimeId(long allotTimeId) {
        if (this.allotTimeId != allotTimeId) {
            this.allotTimeId = allotTimeId;
            setOp(DataStatus.Update);
        }
    }

    public List<Long> getAckServerIdList() {
        return ackServerIdList;
    }
    public void setAckServerIdList(List<Long> ackServerIdList) {
        if (null == ackServerIdList){
            return;
        }
        this.ackServerIdList = ackServerIdList;
        setOp(DataStatus.Update);
    }
}
